<template>
  <div class="category-main">
    <category-main-item
      v-for="(item, index) in subCategoryList"
      :key="index"
      :subCategoryItem="item"
    ></category-main-item>
  </div>
</template>

<script>
import CategoryMainItem from "./CategoryMainItem.vue";

export default {
  name: "CategoryMain",
  components: {
    CategoryMainItem
  },
  props: {
    subCategoryList: {
      type: Array,
      default: () => []
    }
  },
  data() {
    return {};
  }
};
</script>

<style scoped>
.category-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 10px;
}
</style>
